<template>
  <div class="home">
    <el-container class="container">
      <el-header>Header</el-header>
    <el-container>
    <el-aside width="200px">
      <el-menu
                    default-active="1"
                    class="el-menu-vertical-demo"
                    background-color="#545c64"
                    text-color="#fff"
                    router
                    active-text-color="#ffd04b">
                        <el-submenu index="1" >
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>书籍管理</span>
                        </template>
                            <el-menu-item index="/bookInfo">书籍录入</el-menu-item>
                            <el-menu-item index="/0">废弃书籍</el-menu-item>
                            <el-menu-item index="/1">上架书籍</el-menu-item>
                            <el-menu-item index="/2">下架书籍</el-menu-item>
                            <el-menu-item index="/bookType">类型管理</el-menu-item>
                        </el-submenu>
                         <el-submenu index="2" >
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>系统管理</span>
                        </template>
                            <el-menu-item index="/user">用户管理</el-menu-item>
                        </el-submenu>
                    </el-menu>
    </el-aside>
    <el-main>
      <el-card class="box-card">
            <router-view></router-view>
        </el-card>
    </el-main>
  </el-container>
</el-container>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'BookIndex',
  components: {
  }
}
</script>
<style>
  .home,.container{
    height: 100%;
  }
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
  }
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
  }
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  body > .el-container {

  }
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
